<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册页面</title>
</head>
<body>
<h1>注册页面</h1>
<!-- <script type="text/javascript">
    	var msg='${msg}';
    	if(msg==null||msg==""){
    		
    	}else{
    		alert(msg);
    	}
</script> -->
<%-- <form action="registerUser" method="post">
	<input id="id" type="hidden" name="id" value="1"><br>
	<input id="username" type="text" name="username" placeholder="请填写用户名" value="${user.username }"><br>
	<input id="password" type="password" name="password" placeholder="密码6~18位，以字母开头，只能包含字母、数字和下划线" value="${user.password }"><br>
	<input id="againpsd" type="password" name="againpwd" placeholder="确认密码" value="${againpsd }"><br>
	<input id="email" type="email" name="email" placeholder="邮箱" value="${user.email }"><br>
	<input  type="submit" value="注册" >
</form> --%>
<p style="color:red">${msg}</p><hr>
用户注册<br>
	<form action="register" method="post">
				<input id="id" type="hidden" name="id" value="1"><br>
		用户名：<input id="username" type="text" name="username" placeholder="请填写用户名" /><br>
		密码：<input id="password" type="password" name="password" placeholder="密码" /><br>
		email：<input id="email" type="email" name="email" placeholder="邮箱" /><br>
		<input type="submit" value="注册"><br>
		<input type="button" value="返回登录" onclick="window.location.href='login2.jsp'">
	</form><hr>
</body>
</html>